package com.anivia.system.auth.model.entity;

import com.anivia.common.core.enums.DesensitizedTypeEnum;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;

/**
 * <p>
 * 角色-字段脱敏关系表
 * </p>
 *
 * @author wangj
 */
@Getter
@Setter
@TableName("role_field_desensitization")
public class RoleFieldDesensitizationDO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 角色id
     */
    private Integer roleId;

    /**
     * 需要脱敏的字段
     */
    private DesensitizedTypeEnum field;

    /**
     * 租户id
     */
    private Integer tenantId;
}
